<template>
  <div>
    我是底部

    <button @click="callDaddy">打电话给爸爸</button>
  </div>
</template>

<script>
// 引入连接器
import connector from './connection.js'

export default {
  data () {
    return {

    }
  },
  components: {

  },
  methods: {
    callDaddy () {
      // 发射
      connector.$emit('phone', '62分钟来');
    }

  }
}
</script>

<style scoped>
div {
  height: 100px;
  background-color: pink;
}
</style>
